<script lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { defineComponent, reactive } from "vue";

const globalData = reactive({	
	startupParams: {} // 小程序启动参数
})

export default defineComponent({
	globalData,
	setup() {
		onLaunch((options) => {
			if (options) {
				globalData.startupParams =  options || {}
			}
		});
		onShow(() => {
		  console.log("App Show");
		});
		onHide(() => {
		  console.log("App Hide");
		});
	}
})

</script>
<style lang="scss">
	@import "@/uni_modules/uview-plus/index.scss";
</style>
<style>
page {
  background: #f5f5f5;
}
</style>
